<?php
 
namespace models\entities;
 
/**
 * @Entity(repositoryClass="models\repositories\DokumenVersionRepository")
 * @Table(name="dokumen_version")
 */
class DokumenVersion {
 
/**
 * @Id
 * @Column(name="id", type="integer", length=11, unique=true, nullable=false)
 */
	protected $id;

/**
 * @Column(name="dok_id", type="integer", length=11)
 */
	protected $dokId;

/**
 * @Column(name="parent_id", type="integer", length=11)
 */
	protected $parentId;

/**
 * @Column(name="timestamp", type="datetime", nullable=true)
 */
	protected $timestamp; 

/**
 * @Column(name="komentar", type="string", length=45)
 */
	protected $komentar;

/**
 * @Column(name="user_id", type="integer", length=11)
 */
	protected $userId;

/**
 * @Column(name="Dokumen_Versioncol", type="string", length=45)
 */
	protected $dokumenVersioncol;

	/**
 * @Column(name="Dokumen_Versioncol1", type="string", length=45)
 */
	protected $dokumenVersioncol1;


	public function setId($id)
	{
	    $this->id = $id;
	}
 
	public function getId()
	{
	    return $this->id;
	}

	public function setDokId($dokId)
	{
	    $this->dokId = $dokId;
	}
 
	public function getDokId()
	{
	    return $this->dokId;
	}

	public function setParentId($parentId)
	{
	    $this->parentId = $parentId;
	}
 
	public function getParentId()
	{
	    return $this->parentId;
	}
	
	public function setTimestamp($timestamp)
    {
        // will NOT be saved in the database
        $this->timestamp = new \DateTime("now");
    }
    
	public function getTimestamp()
    {
        return $timestamp;
    }	

	public function setKomentar($komentar)
	{
	    $this->komentar = $komentar;
	}
 
	public function getKomentar()
	{
	    return $this->komentar;
	}
	
	public function setUserId($userId)
	{
	    $this->userId = $userId;
	}
 
	public function getUserId()
	{
	    return $this->userId;
	}
	
	public function setDokumenVersioncol($dokumenVersioncol)
	{
	    $this->dokumenVersioncol = $dokumenVersioncol;
	}
 
	public function getDokumenVersioncol()
	{
	    return $this->dokumenVersioncol;
	}
	
	public function setDokumenVersioncol1($dokumenVersioncol1)
	{
	    $this->dokumenVersioncol1 = $dokumenVersioncol1;
	}
 
	public function getDokumenVersioncol1()
	{
	    return $this->dokumenVersioncol1;
	}
}